﻿@using MobilnyDostawca;
@{
    var user = (Nadzorcy)HttpContext.Current.Session["User"];
    if(Request.IsAuthenticated) {
      if(user == null){
              <text>Witaj <strong>@User.Identity.Name</strong>!
            [ @Html.ActionLink("Wyloguj", "LogOff", "Authentication") ]</text>
      }else{
        <text>Witaj <strong>@user.Imie</strong> <strong>@user.Nazwisko</strong>!
        [ @Html.ActionLink("Wyloguj", "LogOff", "Authentication") ]</text>
        }
    }
    else 
    {
        @:[ @Html.ActionLink("Zaloguj", "LogIn", "Authentication") ]
    }
}
